From 5f8a398a50ad9460557543a2797b24efbbe62203 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 8 Jun 1993 21:08:56 +0000 Subject: [PATCH] (INTERVAL_WRITABLE_P): Fix backwards tests. --- src/intervals.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/intervals.h b/src/intervals.h index c724f31ede3..7a6c91064fd 100644 --- a/src/intervals.h +++ b/src/intervals.h @@ -140,12 +140,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qinvisible))) /* Is this interval writable? Replace later with cache access */ -#define INTERVAL_WRITABLE_P(i) \ - (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qread_only)) \ - && (NILP (Vinhibit_read_only) \ - || (CONSP (Vinhibit_read_only) \ - && !NILP (Fmemq (textget ((i)->plist, Qread_only), \ - Vinhibit_read_only))))) +#define INTERVAL_WRITABLE_P(i) \ + (! NULL_INTERVAL_P (i) \ + && (NILP (textget ((i)->plist, Qread_only)) \ + || ((CONSP (Vinhibit_read_only) \ + ? !NILP (Fmemq (textget ((i)->plist, Qread_only), \ + Vinhibit_read_only)) \ + : !NILP (Vinhibit_read_only))))) \ /* Macros to tell whether insertions before or after this interval should stick to it. */ -- 2.30.2